package javacore.Statements;

public class Logical {

	public static void main(String[] args) {
		boolean a = true, b = false;
		boolean c;
		
		System.out.println("a = " + a + " , b = " + b);
		
		c = (a && b);
		System.out.println("a && b is " + c);
		
		c = (a || b);
		System.out.println("a || b is " + c);
		
		c = !(a && b);
		System.out.println("!(a && b) is " + c);

	}

}
